LOCAL_PATH    := $(call my-dir)
LIBRTMP	      := librtmp

include $(CLEAR_VARS)

LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
#librtmp
LOCAL_CFLAGS 	:= -Wall -O2 -DSYS=posix  -DNO_CRYPTO #-DUSE_POLARSSL

LOCAL_MODULE    := librtmp
LOCAL_ARM_MODE := arm
LOCAL_MODULE_TAGS := optional
LOCAL_CPP_EXTENSION := .cc
LOCAL_SRC_FILES := \
$(LIBRTMP)/amf.c \
$(LIBRTMP)/hashswf.c \
$(LIBRTMP)/log.c \
$(LIBRTMP)/parseurl.c \
$(LIBRTMP)/rtmp.c \

LOCAL_LDFLAGS := $(LOCAL_LDFLAGS) -L$(LOCAL_PATH)/libs/
LOCAL_LDLIBS  += -lpolarssl


include $(BUILD_STATIC_LIBRARY)

